package com.xiangwei.view;



public class DropDownView implements Comparable<DropDownView>{
    private Long id;

    private String name;

    /**
     * 显示顺序
     */
    private Integer sort;

	@Override
    public int compareTo(DropDownView o) {
        if (o == null || o.getSort() == null) {
            return 1;
        }
        if (null == getSort()) {
            return -1;
        }
        return getSort().compareTo(o.getSort());
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	
}